package org.apache.dubbo.demo.provider;

/**
 * @Author CK
 * @Date: 2024−12-02 17:37
 * @Description: Wrapper0
 * @Copyright: 南京优通信息科技股份有限公司
 */
public class Wrapper0 {
    public static String[] pns;
    public static java.util.Map pts;
    public static String[] mns;
    public static String[] dmns;
    public static Class[] mts0;

    public String[] getPropertyNames() {
        return pns;
    }

    public boolean hasProperty(String n) {
        return pts.containsKey(n);
    }

    public Class getPropertyType(String n) {
        return (Class) pts.get(n);
    }

    public String[] getMethodNames() {
        return mns;
    }

    public String[] getDeclaredMethodNames() {
        return dmns;
    }

    public void setPropertyValue(Object o, String n, Object v) {
        org.apache.dubbo.demo.GreetingService w;
        try {
            w = ((org.apache.dubbo.demo.GreetingService) o);
        } catch (Throwable e) {
            throw new IllegalArgumentException(e);
        }
        throw new org.apache.dubbo.common.bytecode.NoSuchPropertyException("Not found property \"" + n + "\" field or setter method in class org.apache.dubbo.demo.GreetingService.");
    }

    public Object getPropertyValue(Object o, String n) {
        org.apache.dubbo.demo.GreetingService w;
        try {
            w = ((org.apache.dubbo.demo.GreetingService) o);
        } catch (Throwable e) {
            throw new IllegalArgumentException(e);
        }
        throw new org.apache.dubbo.common.bytecode.NoSuchPropertyException("Not found property \"" + n + "\" field or getter method in class org.apache.dubbo.demo.GreetingService.");
    }

    public Object invokeMethod(Object o, String n, Class[] p, Object[] v) throws java.lang.reflect.InvocationTargetException {
        org.apache.dubbo.demo.GreetingService w;
        try {
            w = ((org.apache.dubbo.demo.GreetingService) o);
        } catch (Throwable e) {
            throw new IllegalArgumentException(e);
        }
        try {
            if ("hello".equals(n) && p.length == 0) {
                return w.hello();
            }
        } catch (Throwable e) {
            throw new java.lang.reflect.InvocationTargetException(e);
        }
        throw new org.apache.dubbo.common.bytecode.NoSuchMethodException("Not found method \"" + n + "\" in class org.apache.dubbo.demo.GreetingService.");
    }

}
